package com.ruoyi.bantong.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 席位池对象 bt_placecard_pool
 * 
 * @author laohei
 * @date 2021-01-24
 */
public class BtPlacecardPool extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Integer osid;

    /** id */
    private Integer ppId;

    /** 等级 */
    @Excel(name = "等级")
    private Integer level;

    /** 奖池批次号 */
    @Excel(name = "奖池批次号")
    private String ppCode;

    /** 当前人数 */
    @Excel(name = "当前人数")
    private Integer total;

    /** 开奖时间 人满即开奖 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开奖时间 人满即开奖", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date openTime;

    /** 公布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "公布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 状态 0未开奖 1已开奖 2已公布 */
    @Excel(name = "状态 0未开奖 1已开奖 2已公布")
    private Integer status;

    /** 玩法总人数 */
    private Integer playCount;

    /** 中奖人数 */
    private Integer winCount;

    /** 开奖间隔 */
    private Integer openInterval;

    /** 保证金 */
    private Integer earnestMoney;

    private List<BtPlacecardPoolDetails> detailsList;


    public Integer getEarnestMoney() {
        return earnestMoney;
    }

    public void setEarnestMoney(Integer earnestMoney) {
        this.earnestMoney = earnestMoney;
    }

    public void setOsid(int osid) {
        this.osid = osid;
    }

    public Integer getPpId() {
        return ppId;
    }

    public void setPpId(Integer ppId) {
        this.ppId = ppId;
    }

    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setPpCode(String ppCode) 
    {
        this.ppCode = ppCode;
    }

    public String getPpCode() 
    {
        return ppCode;
    }
    public void setTotal(Integer total) 
    {
        this.total = total;
    }

    public Integer getTotal() 
    {
        return total;
    }
    public void setOpenTime(Date openTime) 
    {
        this.openTime = openTime;
    }

    public Date getOpenTime() 
    {
        return openTime;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public Integer getOsid() {
        return osid;
    }

    public void setOsid(Integer osid) {
        this.osid = osid;
    }

    public Integer getPlayCount() {
        return playCount;
    }

    public void setPlayCount(Integer playCount) {
        this.playCount = playCount;
    }

    public Integer getWinCount() {
        return winCount;
    }

    public void setWinCount(Integer winCount) {
        this.winCount = winCount;
    }

    public Integer getOpenInterval() {
        return openInterval;
    }

    public void setOpenInterval(Integer openInterval) {
        this.openInterval = openInterval;
    }

    public List<BtPlacecardPoolDetails> getDetailsList() {
        return detailsList;
    }

    public void setDetailsList(List<BtPlacecardPoolDetails> detailsList) {
        this.detailsList = detailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ppId", getPpId())
            .append("level", getLevel())
            .append("ppCode", getPpCode())
            .append("total", getTotal())
            .append("openTime", getOpenTime())
            .append("publishTime", getPublishTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
